package com.btex.app.entity;

import java.util.List;

/**
 * @author zy zhangyi <zhangyi, 1104745049@QQ.com
 * @version v1.0
 * @project study1
 * @Description
 * @encoding UTF-8
 * @date 2018/10/20
 * @time 上午11:02
 * @修改记录 <pre>
 * 版本       修改人         修改时间         修改内容描述
 * --------------------------------------------------
 * <p>
 * --------------------------------------------------
 * </pre>
 */

public class MyOrderHisInfo {

    /**
     * code : 1
     * data : {"orders_his":[{"order_id":"607539","contract_id":"1","amount":"100","price":"6350.00000000","margin_price":"6350.00000000","type":"limit","leverage":"10","margin":"0.00160787","direction":"-1","rest_num":"0","rest_margin":"0.00160787","trade_orders":"|607540,100","ctime":"1539936116","order_status":"1","liquidation_price":"6953.25000000","user_id":"100038"},{"order_id":"607393","contract_id":"1","amount":"10","price":"6700.00000000","margin_price":"6700.00000000","type":"limit","leverage":"10","margin":"0.00015238","direction":"-1","rest_num":"10","rest_margin":"0.00015238","trade_orders":"","ctime":"1539929659","order_status":"-1","liquidation_price":"7336.50000000","user_id":"100038"}],"data_hash":"99c39a97a1596160ef11b231abd69bde"}
     * info :
     */

    private int code;
    private DataBean data;
    private String info;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public static class DataBean {
        /**
         * orders_his : [{"order_id":"607539","contract_id":"1","amount":"100","price":"6350.00000000","margin_price":"6350.00000000","type":"limit","leverage":"10","margin":"0.00160787","direction":"-1","rest_num":"0","rest_margin":"0.00160787","trade_orders":"|607540,100","ctime":"1539936116","order_status":"1","liquidation_price":"6953.25000000","user_id":"100038"},{"order_id":"607393","contract_id":"1","amount":"10","price":"6700.00000000","margin_price":"6700.00000000","type":"limit","leverage":"10","margin":"0.00015238","direction":"-1","rest_num":"10","rest_margin":"0.00015238","trade_orders":"","ctime":"1539929659","order_status":"-1","liquidation_price":"7336.50000000","user_id":"100038"}]
         * data_hash : 99c39a97a1596160ef11b231abd69bde
         */

        private String data_hash;
        private List<OrdersHisBean> orders_his;

        public String getData_hash() {
            return data_hash;
        }

        public void setData_hash(String data_hash) {
            this.data_hash = data_hash;
        }

        public List<OrdersHisBean> getOrders_his() {
            return orders_his;
        }

        public void setOrders_his(List<OrdersHisBean> orders_his) {
            this.orders_his = orders_his;
        }

        public static class OrdersHisBean {
            /**
             * order_id : 607539
             * contract_id : 1
             * amount : 100
             * price : 6350.00000000
             * margin_price : 6350.00000000
             * type : limit
             * leverage : 10
             * margin : 0.00160787
             * direction : -1
             * rest_num : 0
             * rest_margin : 0.00160787
             * trade_orders : |607540,100
             * ctime : 1539936116
             * order_status : 1
             * liquidation_price : 6953.25000000
             * user_id : 100038
             */

            private String order_id;
            private String contract_id;
            private String amount;
            private String price;
            private String margin_price;
            private String type;
            private String leverage;
            private String margin;
            private String direction;
            private String rest_num;
            private String rest_margin;
            private String trade_orders;
            private String ctime;
            private String order_status;
            private String liquidation_price;
            private String user_id;
            private String is_adl;

            public String getIs_liquidation() {
                return is_liquidation;
            }

            public void setIs_liquidation(String is_liquidation) {
                this.is_liquidation = is_liquidation;
            }

            private String is_liquidation;

            public String getIs_adl() {
                return is_adl;
            }

            public void setIs_adl(String is_adl) {
                this.is_adl = is_adl;
            }


            public String getIs_cross() {
                return is_cross;
            }

            public void setIs_cross(String is_cross) {
                this.is_cross = is_cross;
            }

            private String is_cross;

            public String getSymbol() {
                return symbol;
            }

            public void setSymbol(String symbol) {
                this.symbol = symbol;
            }

            private String symbol;

            public String getOrder_id() {
                return order_id;
            }

            public void setOrder_id(String order_id) {
                this.order_id = order_id;
            }

            public String getContract_id() {
                return contract_id;
            }

            public void setContract_id(String contract_id) {
                this.contract_id = contract_id;
            }

            public String getAmount() {
                return amount;
            }

            public void setAmount(String amount) {
                this.amount = amount;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getMargin_price() {
                return margin_price;
            }

            public void setMargin_price(String margin_price) {
                this.margin_price = margin_price;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getLeverage() {
                return leverage;
            }

            public void setLeverage(String leverage) {
                this.leverage = leverage;
            }

            public String getMargin() {
                return margin;
            }

            public void setMargin(String margin) {
                this.margin = margin;
            }

            public String getDirection() {
                return direction;
            }

            public void setDirection(String direction) {
                this.direction = direction;
            }

            public String getRest_num() {
                return rest_num;
            }

            public void setRest_num(String rest_num) {
                this.rest_num = rest_num;
            }

            public String getRest_margin() {
                return rest_margin;
            }

            public void setRest_margin(String rest_margin) {
                this.rest_margin = rest_margin;
            }

            public String getTrade_orders() {
                return trade_orders;
            }

            public void setTrade_orders(String trade_orders) {
                this.trade_orders = trade_orders;
            }

            public String getCtime() {
                return ctime;
            }

            public void setCtime(String ctime) {
                this.ctime = ctime;
            }

            public String getOrder_status() {
                return order_status;
            }

            public void setOrder_status(String order_status) {
                this.order_status = order_status;
            }

            public String getLiquidation_price() {
                return liquidation_price;
            }

            public void setLiquidation_price(String liquidation_price) {
                this.liquidation_price = liquidation_price;
            }

            public String getUser_id() {
                return user_id;
            }

            public void setUser_id(String user_id) {
                this.user_id = user_id;
            }
        }
    }
}
